package com.geovis.emergency.spd.entity.zwdd.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 海证通 订阅事件返回结果类
 * </p>
 *
 * @author 王响
 * @since 2022-03-17
 */
@Getter
@Setter
@ApiModel(value = "CallbackResult", description = "海证通 订阅事件返回结果对象")
public class CallbackResult implements Serializable {

    @ApiModelProperty(value = "错误编码")
    private String errcode;

    @ApiModelProperty(value = "错误消息")
    private String errmsg;

    public static CallbackResult ok() {
        CallbackResult callbackResult = new CallbackResult();
        callbackResult.errcode = "0";
        callbackResult.errmsg = "操作成功";
        return callbackResult;
    }

}
